package controller.listeners.posprocessingDups;

import java.util.ArrayList;

import model.PosProcessingDuplicatedModel;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

import business.ViewLogger;

import view.PosProcessingDuplicatedView;

public class RefreshIdcodecorpsKeyDownListener implements Listener{
	
	private PosProcessingDuplicatedModel _model;
	private PosProcessingDuplicatedView _view;
	
	
	
	public RefreshIdcodecorpsKeyDownListener(PosProcessingDuplicatedModel _model,	PosProcessingDuplicatedView _view) {
		
		this._model = _model;
		this._view = _view;
	}


	public void handleEvent(Event event) {
		if(event.keyCode == SWT.F5){
			_view.setDuplicatedIds(new ArrayList<Integer>());
			_view.setDuplicatedIds(_model.get_idcodecorpsmatchingcorp());
			//_view.setIDNOS(null);
			
		
		}
		
	}

}
